#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>
#include <QToolButton>
#include <QVBoxLayout>
#include <QDebug>
#include <QPaintEvent>
#include <QTimer>
#include <QPainter>
#include <view/softkeyboard.h>
#include "entity/characterentity.h"
#include "mypushbutton.h"

namespace Ui {
class HandWidget;
}

class HandWidget : public QWidget
{
    Q_OBJECT

public:
    explicit HandWidget(SoftKeyboard *parent = nullptr);
    ~HandWidget();


    void setRightToolWidget();

    //右侧工具栏__相关
    //删除按钮
    MyPushButton *btnDel;
    //确认按钮
    MyPushButton *btnSure;
    //abc/123按钮
    MyPushButton *btnabc;
    //字符按钮
    MyPushButton *btnChar;
    //键盘按钮
    MyPushButton *btnKeyBoard;
    //右侧工具栏布局
    QVBoxLayout *layout;

signals:
    void toEN_keyBoard();

public slots:
    void recognizeChinese(CharacterEntity);
    void KeyClicked(int unicode, int key);

private:
    Ui::HandWidget *ui;

    SoftKeyboard *parent;

};

#endif // MYWIDGET_H
